/* Allgemeine Stile */
body {
    background-color: black;
    color: white;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Header-Stil für die Seiten */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    text-align: center;
    padding: 0;
}

header h2 {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.impressum {
    text-align: center;
}

.untertitelrenderings {
    text-align: center;
    color: gray;
}

.pläne-sudokucity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background-color: transparent;
    border-radius: 8px;
}

.pläne-sudokucity img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    page-break-inside: avoid;
}

/* Logo Animation */
.logo {
    margin: 0;
    padding: 15px 20px;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.2rem;
    color: white;
    transition: left 2s ease-in-out;
}

.logo.move {
    left: calc(100vw - 200px);
}

@keyframes slide-to-right {
    from {
        left: 20px;
    }
    to {
        left: calc(100% - 220px);
    }
}

.banner {
    display: flex;
    flex-direction: column;    /* untereinander */
    align-items: center;       /* horizontal zentriert */
    gap: 30px;                 /* Abstand zwischen Links */
}


.banner-item {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
    animation: fade-in 1s ease-out forwards;
    cursor: pointer;
}

.banner-item:hover {
    transform: scale(1.1);
}

/* Keyframes */
@keyframes drop-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Back-Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    font-family: 'Roboto Mono', monospace;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s;
}

.back-button:hover {
    opacity: 1;
}

/* Stil für Projekte-Seite */
.plaene-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
    padding: 20px;
    overflow: visible;
}

.plaene-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plaene-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 200px;
}

.pdf-button {
    background-color: black;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pdf-button:hover {
    background-color: white;
    color: black;
}

/* Modal-Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    margin: auto;
    width: 85%;
    height: 85%;
    background-color: black;
    padding: 20px;
    border-radius: 10px;
}

.modal-content iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.modell-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.modell-container img {
    width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.modell-container img:hover {
    transform: scale(1.05);
}

.sudoku-video {
    width: 30%;
    max-width: 800px;
    margin: 40px auto 0;
    display: block;
    border-radius: 8px;
}

/* Kontakt-Seite */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 11% auto;
    height: auto;
    text-align: center;
    gap: 10px;
    padding: 0 20px;
    animation: fade-in 1.5s ease-out forwards;
}

.content p {
    color: white;
    opacity: 0;
    animation: fade-in 1.5s ease-out forwards;
}

/* Renderings */
.renderings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.renderings-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.renderings-container img:hover {
    transform: scale(1.05);
}

/* Modal für Renderings */
#rendering-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

#rendering-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: auto;
}

#rendering-modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

#rendering-modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#rendering-modal .close:hover {
    color: #ccc;
}

/* Media Query */
@media (max-width: 600px) {
    body {
        padding: 0 10px;
        font-size: 14px;
        overflow-x: hidden;
    }

    .logo {
        position: static; /* bleibt oben */
        text-align: center;
        font-size: 2rem; /* ← HIER stellst du die Größe ein */
        margin-top: -100px; /* ← HIER stellst du den Abstand nach oben ein */
        margin-bottom: 20px; /* (optional) Abstand zum Banner */
    }

    .back-button {
        position: static;
        display: block;
        margin: 10px auto;
        text-align: center;
        font-size: 1.5rem;
    }

    .banner {
        flex-direction: column;
        align-items: center;
        margin: 50px 0;
        gap: 15px;
    }

    .banner-item {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .pläne-sudokucity,
    .modell-container,
    .renderings-container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }

    .renderings-container {
        grid-template-columns: 1fr !important;
    }

    .renderings-container img,
    .modell-container img {
        width: 100% !important;
        height: auto;
    }

    .pdf-button {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }

    .modal-content {
        width: 95%;
        height: 85%;
        padding: 10px;
    }

    .close {
        font-size: 20px;
        top: 8px;
        right: 10px;
    }

    .content {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .plaene-link {
        flex-direction: column;
        height: auto;
        gap: 20px;
        padding: 20px 0;
    }

    .sudoku-video {
        width: 100%;
    }
}
